package com.opoc.mapper;

import com.opoc.pojo.Log_sql;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.text.ParseException;
import java.util.List;

@Mapper
public interface SystemLogMapper {
  void insert(Log_sql log_sql);
  List<Log_sql> getLogs(@Param("operation_kind") String operation_kind,
                        @Param("start_time") Timestamp start_time,
                        @Param("end_time") Timestamp end_time) throws ParseException;
  @Delete("delete from log where id = #{id}")
  void deleteById(Integer id);
}
